package com.oceansoft.mobile.biz.admin.entity;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class BasesiteChannel  implements Serializable {
	private long sid;
	private String name;
	private String description;
	private String icon;
	private long mer_id;
	private long theme_id;
	private String type;
	private String type_val;
	private int status;
	
	private String type_val2;//页面临时使用
	
	public BasesiteChannel() {
		super();
	}

	
	 public BasesiteChannel(long sid, String name, String description, String icon,
			long mer_id, long theme_id, String type, String type_val, int status) {
		super();
		this.sid = sid;
		this.name = name;
		this.description = description;
		this.icon = icon;
		this.mer_id = mer_id;
		this.theme_id = theme_id;
		this.type = type;
		this.type_val = type_val;
		this.status = status;
	}


	public static RowMapper<BasesiteChannel> getFullRowMapper() {
	        return new RowMapper<BasesiteChannel>() {
	            @Override
	            public BasesiteChannel mapRow(ResultSet rs, int index) throws SQLException {
	                BasesiteChannel obj = new BasesiteChannel();
	                obj.setSid(rs.getLong("sid"));
	                obj.setName(rs.getString("name"));
	                obj.setDescription(rs.getString("description"));
	                obj.setIcon(rs.getString("icon"));
	                obj.setMer_id(rs.getLong("mer_id"));
	                obj.setTheme_id(rs.getLong("theme_id"));
	                obj.setType(rs.getString("type"));
	                obj.setType_val(rs.getString("type_val"));
	                obj.setStatus(rs.getInt("status"));
	                return obj;
	            }
	        };
	    }
	
	public static RowMapper<BasesiteChannel> getRowMapper() {
        return new RowMapper<BasesiteChannel>() {
            @Override
            public BasesiteChannel mapRow(ResultSet rs, int index) throws SQLException {
                BasesiteChannel obj = new BasesiteChannel();
                obj.setSid(rs.getLong("sid"));
                obj.setName(rs.getString("name"));
                obj.setMer_id(rs.getLong("mer_id"));
                obj.setType(rs.getString("type"));
                obj.setType_val(rs.getString("type_val"));
                return obj;
            }
        };
    }

	public String getType_val2() {
		return type_val2;
	}


	public void setType_val2(String type_val2) {
		this.type_val2 = type_val2;
	}


	public int getStatus() {
		return status;
	}


	public void setStatus(int status) {
		this.status = status;
	}


	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}


	public String getType_val() {
		return type_val;
	}

	public void setType_val(String type_val) {
		this.type_val = type_val;
	}

	public long getSid() {
		return sid;
	}
	public void setSid(long sid) {
		this.sid = sid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public long getMer_id() {
		return mer_id;
	}
	public void setMer_id(long mer_id) {
		this.mer_id = mer_id;
	}
	public long getTheme_id() {
		return theme_id;
	}
	public void setTheme_id(long theme_id) {
		this.theme_id = theme_id;
	}
	
	

}
